package com.ilongsay.dao;

import com.ilongsay.entity.FaPiaoDetail;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Author ilongsay
 * @Email ilongsay@163.com
 * @Copyright 版本所有，侵权必究！
 * @Datetime 2018-11-11 17:52
 * @Describution
 */
public interface BillDetailDao {

    @Select("select * from billDetail where billCode=#{billCode}")
    public List<FaPiaoDetail> findByBillCode(@Param("billCode") String billCode);

    /**
     * @param
     * @return java.util.List<com.ilongsay.entity.FaPiaoDetail>
     * //TODO:这里日后会做相关的优化，进行多表联查，一次性将数据查出来，现在先实现相关功能
     */
    @Select("select * from billDetail")
    public List<FaPiaoDetail> findAllBillDetail();


}
